<template>
  <div id="app">
    <router-view></router-view>
    <!-- 缓存页面 -->
    <!-- <keep-alive>
      <router-view :key="$route.fullPath"></router-view>
    </keep-alive> -->
  </div>
</template>
<script>
export default {
  name: "App",
  data() {
    return {};
  },
  methods: {
    _isMobile() {
      let flag = navigator.userAgent.match(
        /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
      );
      // localStorage.setItem('isiphone',flag)
      localStorage.setItem("ismobile", flag ? 1 : 0);
      return flag;
    }
  },
  created(){
    this._isMobile()
  }
};
</script>

<style>
#app {
  font-family: PingFang SC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
  max-width: -16px;
  font-size: 15px;
}
.el-popper[x-placement^=right]{
  height: 500px;
  overflow: auto;
}
</style>
